package com.atguigu.exam.service;

import com.atguigu.exam.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category> {

    //获取分类列表
    List<Category> getAllcategories();
    //获取分类树形结果
    List<Category> getCategoryTree();
    //添加分类
    void saveCategory(Category category);
    //更新分类
    void updateCategory(Category category);
    //删除分类
    void deleteCategory(Long id);
}